type Flip<T extends Record<string, any>> = {
    [P in keyof T as `${T[P]}`]: P
}

// 必须用`${}`转为字符串型